from django.conf.urls import url

from houses import views

urlpatterns = [
    url(r'^areas$', views.AreasView.as_view()),
    url(r'^houses/(?P<pk>\d+)$',views.HouseDetailView.as_view()),
    url(r'^houses$',views.HouseSearchView.as_view({'get':'list','post':'create'})),
    url(r'^houses/(?P<pk>\d+)/images$', views.HouseImageView.as_view()),
    url(r'^user/houses$', views.HousesListView.as_view()),
    url(r'^houses/index$', views.HouseIndexView.as_view())
]
